﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lcygcc.Domain.Repository.Entity
{
    /// <summary>
    /// 同步历史表
    /// </summary>
    public class SyncHistory
    {
        public long Id { get; set; }

        /// <summary>
        /// 平台类型 0智能管理平台 1运维平台 2城市停车 3JSSDK 4捷顺金科
        /// </summary>
        public int ServiceType { get; set; }

        /// <summary>
        /// 数据类型 0数据 1文件
        /// </summary>
        public int DataType { get; set; }

        /// <summary>
        /// 平台服务Id
        /// </summary>
        public string ServiceId { get; set; }

        /// <summary>
        /// 系统Id
        /// </summary>
        public string SeqId { get; set; }

        /// <summary>
        /// 数据业务Id
        /// </summary>
        public string BusinessId { get; set; }

        /// <summary>
        /// 数据包
        /// </summary>
        public string ProtocolData { get; set; }

        //发送次数
        public int SendNum { get; set; }

        /// <summary>
        /// 0未发送 1发送成功 2发送失败  
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 请求类型
        /// </summary>
        public string RequestType { get; set; }

        /// <summary>
        /// 发送失败原因
        /// </summary>
        public string FailMessage { get; set; }
    }
}
